package com.cgs.query.event

import com.cgs.query.domain.QuerySource
import org.springframework.context.ApplicationEvent

/**
 * 数据源事件
 */
class QuerySourceEvent(val sourceId: String, val type: Type) : ApplicationEvent(sourceId) {

    enum class Type {
        DELETE,
        UPDATE
    }

    var originQuerySource: QuerySource? = null
    var newQuerySource: QuerySource? = null
}